<?php
    $user = $this->controller->getUser();
    
    $vote_info = $this->layout()->vote_info;
    $vote_list = array();
    foreach($vote_info as $thread_id=>$thread){
        $now = time();
        foreach($thread as $phase_id=> $phase){
            if($phase->view_enable==1){
                $vname = $phase->thread_name;
                $vid = $thread_id."_".$phase_id;
                $vote_list[] = array("name"=>$vname, "votephoto_category"=>$phase->votephoto_category, "vid"=>$vid, "thid"=>$thread_id, "pid"=>$phase_id);
            }
        }
        
    }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?echo ($this->layout()->title!="" ? $this->escape($this->layout()->title) : "") ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
    
    <script type="text/javascript">
      
        var fadeimages=new Array()
        <?php 
        $totalImg = 12;
        for($i=0; $i<$totalImg; $i++){
        ?>
        fadeimages[<?php echo $i;?>]=["<?php echo $this->layout()->spath;?>/slide/<?php echo str_pad($i+1, 3, '0', STR_PAD_LEFT);?>.jpg", "", ""]
        <?php
        }
        ?>

    </script>
    <!--Import CSS files:-->
    <link href="<?php print $this->layout()->spath; ?>/css/style.css" rel="stylesheet" type="text/css" />       
    <!--End css files-->
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/swfobject.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/event_cover_comment.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/fadeimage.js"></script>

   <!--[if lt IE 7]>
        <script defer type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/pngfix.js"></script>
        <link href="<?php echo EVENT_STATIC_SERVER;?>/css/ie6fix.css" rel="stylesheet" type="text/css" />
    <![endif]-->
</head>
<body>
<div id="home" class="page-center">
<!--menu tamtay.vn-->
     <div id="menu_tt" class="tex_menu_tt">
            <div class="menu_tt-left">
                   <a href="http://www.tamtay.vn">Tamtay.vn</a> | 
                   <a href="http://www.tamtay.vn/video">Video</a> | 
                   <a href="http://www.tamtay.vn/photo">Ảnh</a> | 
                   <a href="http://www.tamtay.vn/music">Nhạc</a> | 
                   <a href="http://www.tamtay.vn/ttblog/listBlog">Blog</a> | 
                   <a href="http://www.tamtay.vn/event/browse">Sự kiện</a> | 
                   <a href="http://www.tamtay.vn/mybookmark/all">Web hay</a> | 
                   <a href="http://www.tamtay.vn/group/browse">Nhóm</a> | 
                   <a href="http://www.tamtay.vn/myttnetwork/home">Network</a> | 
                   <a href="http://www.tamtay.vn/group/forum">Diễn đàn</a> | 
                   <a href="http://raovat.tamtay.vn/">Rao vặt</a>
           </div>
           
          <div class="menu_tt-right">
            <?php if ($user->uid) {?>
            Chào <strong><?php echo $user->name; ?></strong> - <a href="<?php echo IDS_LOGOUT_URL;?>">Thoát</a>
            <?php } else {?>
                <a href="<?php echo IDS_LOGIN_URL;?>">Đăng nhập</a>&nbsp;
                <a href="<?php echo IDS_REGISTER_URL;?>">Đăng ký</a>
            <?php }?>    
          </div>
     </div>

<!--benner-->     
     <div id="banner"></div>
     
<!--menu_event-->     
<div class="menu_event">
          
               <span><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>"><img src="<?php print $this->layout()->spath; ?>/images/trangchu_active.jpg" width="80" height="20" border="0" /></a></span>
               <span><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>/desc"><img src="<?php print $this->layout()->spath; ?>/images/gioithieu.jpg" width="74" height="20" border="0" /></a></span>
               <!--<span><a href="#"><img src="<?php print $this->layout()->spath; ?>/images/dudoan.jpg" width="62" height="20" border="0" /></a></span>-->
               <span><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>#mark_news"><img src="<?php print $this->layout()->spath; ?>/images/tintuc.jpg" width="57" height="20" border="0" /></a></span>
               <span><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>#mark_photo"><img src="<?php print $this->layout()->spath; ?>/images/anh.jpg" width="30" height="20" border="0" /></a></span>
               <span><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>#mark_video"><img src="<?php print $this->layout()->spath; ?>/images/video.jpg" width="40" height="20" border="0" /></a></span>
               <span><a href="http://www.tamtay.vn/blog/hiphop09?p=viewEntry&nid=397757"><img src="<?php print $this->layout()->spath; ?>/images/huongdanbinhchon.jpg" width="160" height="20" border="0" /></a></span>
               <!--div mo-->
     </div>
     
<!--noidung trang-->     
<div class="space"> &nbsp; </div>
<div id="nodung" class="noidung">
     <?php echo $this->layout()->content;?>
     </div>
    
<!--pooter-->     
 <div id="footer">
           <div class="copyright">
           Giấy phép ICP của Bộ Thông tin và Truyền thông số: 531/GP-CBC © Copyright 2007 TAMTAY.VN All rights reserved. <br />
Ghi rõ nguồn "Tamtay.vn" khi bạn phát hành lại thông tin từ website này. 
           </div>
           
     </div>
     <!--div-->
</div>

</body>
</html>
